package com.yc.vote.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 投票系统-题目选项表-9
 * </p>
 *
 * @author baomidou
 * @since 2023-07-10
 */
@TableName("tp_items")
@Data
public class TpItems implements Serializable {

    private static final long serialVersionUID = 1L;

    // 该项目的投票数
    private int nums;

      /**
     * 编号, 自增列
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 选项内容
     */
      private String iname;

      /**
     * 题目编号, 关联 tp_vote.id
     */
      private Integer vid;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getIname() {
        return iname;
    }

      public void setIname(String iname) {
          this.iname = iname;
      }
    
    public Integer getVid() {
        return vid;
    }

      public void setVid(Integer vid) {
          this.vid = vid;
      }

    @Override
    public String toString() {
        return "TpItems{" +
              "id=" + id +
                  ", iname=" + iname +
                  ", vid=" + vid +
              "}";
    }
}
